MODSIGN: Make shash allocation failure fatal
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 May 2019 12:45:06 +0000 (13:45 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 3 Oct 2021 20:14:52 +0000 (21:14 +0100)
commita97fb68f9fdc3df80d5c39a30078c45cdccf0cc3
treed82cee92a053771e449856a79eda980e32c4e9df
parent6da56b0a2654b17f10ee4d6eb8f1ca944d7b3f91
MODSIGN: Make shash allocation failure fatal

mod_is_hash_blacklisted() currently returns 0 (suceess) if
crypto_alloc_shash() fails.  This should instead be a fatal error,
so unwrap and pass up the error code.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name modsign-make-shash-allocation-failure-fatal.patch
kernel/module_signing.c